home *** CD-ROM | disk | FTP | other *** search
/ 3D GFX / 3D GFX.iso / amiutils / q_t / raystorm / arexx / supersample.ray < prev    next >
Encoding:
Text File  |  1995-12-31  |  880 b   |  49 lines

  1. /***************
  2.  * NAME:        supersample.ray
  3.  * VERSION:     1.0 17.10.95
  4.  * DESCRIPTION: Adaptive supersampling
  5.  * AUTHORS:     Andreas Heumann
  6.  * BUGS:        none
  7.  * TO DO:       none
  8.  * HISTORY:
  9.  *        DATE        NAME  COMMENT
  10.  *    17.10.95 ah    initial release
  11.  ***************/
  12.  
  13. signal on error
  14.  
  15. options results
  16.  
  17. IF ~show('P','RAYSTORM') THEN DO
  18.     address COMMAND 'run >NIL: <NIL: /RayStorm'
  19.     address COMMAND WaitForPort RAYSTORM
  20. END  
  21.  
  22. address RAYSTORM
  23.  
  24. 'SETSCREEN 128 128'
  25. 'SETCAMERA <0,0,-300> <0,0,0> <0,1,0> 45 45'
  26. 'SETWORLD <0,0,0> <100,100,100>'
  27. 'POINTLIGHT <0,0,-200>'
  28.  
  29. 'NEWSURFACE MAP1'
  30. 'TEXTURE checker.itx <0,1,0> <0,0,1> <32,32,32> 255 255 255'
  31. 'SPECULAR [255,255,255]'
  32. 'DIFFUSE [255,0,0]'
  33.  
  34. 'SPHERE MAP1 <0,0,0> 50'
  35.  
  36. 'ANTIALIAS 2'
  37. 'STARTRENDER'
  38. 'SAVEPIC supersample.iff'
  39.  
  40. 'CLEANUP'
  41.  
  42. exit 0
  43.  
  44. error:
  45. say "Error" rc "in line" sigl ":"
  46. GETERRORSTR rc
  47. say result
  48. exit 0
  49.